package org.jeecg.modules.solitaire_app.app.entity.VO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("各省份加油站数量")
public class ProvinceJyzNumVO implements Comparable<ProvinceJyzNumVO> {

    @ApiModelProperty("省份")
    private String name;

    @ApiModelProperty("加油站数量")
    private int value;

    @Override
    public int compareTo(ProvinceJyzNumVO o) {
        return o.value - this.value;
    }
}
